import 'package:lishi/http_manager.dart';

Future lishi(m, d) async {
  String url = "/base/lishi?m=$m&d=$d";
  try {
    var response = await HttpUtils.request(url, method: HttpUtils.GET);
    return response['data'];
  } catch (e) {
    print(e);
  }
}

Future detail(id) async {
  String url = "/base/lishi/detail?id=$id";
  try {
    var response = await HttpUtils.request(url, method: HttpUtils.GET);
    return response['data'];
  } catch (e) {
    print(e);
  }
}
